import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";

@Index("idx_agent_id", ["apartmentAgentId"], {})
@Index("idx_group_id", ["apartmentGroupId"], {})
@Entity("apartment_group_agent_management", { schema: "cbox" })
export class ApartmentGroupAgentManagement {
  @PrimaryGeneratedColumn({ type: "int", name: "id", unsigned: true })
  id: number;

  @Column("int", { name: "apartment_group_id", unsigned: true })
  apartmentGroupId: number;

  @Column("int", { name: "apartment_agent_id", unsigned: true })
  apartmentAgentId: number;
}
